<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>companies</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script type="text/javascript">
        function operation(bt) {
            let companyId = $(bt).parent().prev().prev().text()
            let op = bt.value
            let dataString = "userId=xxx,companyId="+companyId+",op="+op;
            $.post("http://192.168.3.100/operation",
                dataString,
                function () {
                    console.log("post : " + dataString)
                }

            )

        }
    </script>
</head>
<body>
<div style="margin-top: 10%; margin-left: 40%">
    <table border="1">
        <caption>companies</caption>
        <tr>
            <th>company_id</th>
            <th>company</th>
            <th>operation</th>
        </tr>
        <tr>
            <td>123</td>
            <td>中华东服</td>
            <td>
                <input type="button" value="click" onclick="operation(this)">
                <input type="button" value="job_collect" onclick="operation(this)">
                <input type="button" value="ccv_sendlick" onclick="operation(this)">
                <input type="button" value="cv_upload" onclick="operation(this)">
            </td>
        </tr>
        <tr>
            <td>456</td>
            <td>中华西服</td>
            <td>
                <input type="button" value="click" onclick="operation(this)">
                <input type="button" value="job_collect" onclick="operation(this)">
                <input type="button" value="ccv_sendlick" onclick="operation(this)">
                <input type="button" value="cv_upload" onclick="operation(this)">
            </td>
        </tr>
        <tr>
            <td>789</td>
            <td>中华男服</td>
            <td>
                <input type="button" value="click" onclick="operation(this)">
                <input type="button" value="job_collect" onclick="operation(this)">
                <input type="button" value="ccv_sendlick" onclick="operation(this)">
                <input type="button" value="cv_upload" onclick="operation(this)">
            </td>
        </tr>
    </table>
</div>
</body>
</html>